package com.punai.config.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.punai.config.domain.ConfigInventoryChapter;
import org.apache.ibatis.annotations.Param;

/**
 * 清单库Mapper接口
 *
 * @author zxw
 * @date 2023-03-22
 */
public interface ConfigInventoryChapterMapper extends BaseMapper<ConfigInventoryChapter>
{
    /**
     * 查询清单库
     *
     * @param id 清单库主键
     * @return 清单库
     */
    public ConfigInventoryChapter selectConfigInventoryChapterById(@Param("id") String id,@Param("companyId")Long companyId);

    /**
     * 查询清单库列表
     *
     * @param configInventoryChapter 清单库
     * @return 清单库集合
     */
    public List<ConfigInventoryChapter> selectConfigInventoryChapterList(ConfigInventoryChapter configInventoryChapter);


    /**
     * 删除清单库
     *
     * @param id 清单库主键
     * @return 结果
     */
    public int deleteConfigInventoryChapterById(String id);

    /**
     * 批量删除清单库
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteConfigInventoryChapterByIds(@Param("ids") String[] ids, @Param("companyId") Long companyId);

    List<ConfigInventoryChapter> selectChildById(@Param("chapterId") String chapterId, @Param("companyId") Long companyId);

    Integer selectMaxOrderNum(@Param("pid") String pid, @Param("companyId") Long companyId);
}
